<div class="invoice p-1 mb-3">
    <div class="row invoice-info">
        <div class="col-sm-12 invoice-col mt-1">
            <b>采购单号：</b> {{ $order_info -> procurement_no }}
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>状态：</b><span class="label" style="{{ $order_info -> style }}">{{ $order_info -> procurement_type }}</span>
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>采购总价：</b>
            <span class="info-box-icon">
                ￥{{ $order_info->procurement_total }}
            </span>
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>备注：</b>{{ $order_info -> remake }}
        </div>
    </div>
    <div class="row invoice-info">
        @if($order_info->procurement_type == 2 || $order_info->procurement_type == 3)
            <div class="col-sm-6 invoice-col mt-1">
                <b>采购方式：</b>{{ $order_info -> supplice_type_name }}
            </div>
            @if($order_info->supplice_type == 1)
                <div class="col-sm-6 invoice-col mt-1">
                    <b>供应商：</b>{{ $order_info -> supplice_name }}
                </div>
            @endif
            @if($order_info->supplice_type == 2)
                <div class="col-sm-6 invoice-col mt-1">
                    <b>采购员：</b>{{ $order_info -> operator_name }}
                </div>
            @endif
        @endif
    </div>



    <div class="row mt-3">
        <div class="col-12 table-responsive">
            <table class="table table-striped center">
                <thead>
                <tr>
                    <th>商品ID</th>
                    <th>名称</th>
                    <th>库存总计</th>
                    <th>计划采购单价</th>
                    <th>计划采购数量</th>
                    <th>备注</th>
                </tr>
                </thead>
                <tbody>
                @foreach($order_info -> goods as $goods)
                    <tr>
                        <td>{{ $goods['id'] }}</td>
                        <td>{{ $goods['goods_name'] }}</td>
                        <td>{{ $goods['quantity_sum'] }}</td>
                        <td>¥ {{ $goods['advance_price'] }}</td>
                        <td>{{ $goods['advance_quantity'] }}</td>
                        <td>{{ $goods['advance_conversion'] }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
